#include "txtform.h"
#include "ui_txtform.h"

txtForm::txtForm(QWidget *parent) :
    QWidget(parent),
    m_ui(new Ui::txtForm)
{
    m_ui->setupUi(this);
}

txtForm::~txtForm()
{
    delete m_ui;
}

void txtForm::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        m_ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

int txtForm::getTxtIndent()
{ return m_ui->textSpinBox->value(); }

bool txtForm::txt83format()
{ return m_ui->textCheckBox->isChecked(); }

int txtForm::getTxtOutputFormat()
{ return m_ui->textComboBox->currentIndex(); }
